$OpenBSD: patch-src_Makefile,v 1.6 2017/05/05 10:21:47 jsg Exp $
--- src/Makefile.orig	Tue May  2 04:11:00 2017
+++ src/Makefile	Tue May  2 11:40:27 2017
@@ -326,6 +326,10 @@ else
   ifeq (GNU/kFreeBSD,$(TARGET_SYS))
     TARGET_XLIBS+= -ldl
   endif
+  ifeq (OpenBSD,$(TARGET_SYS))
+    TARGET_XSHLDFLAGS= -shared -fPIC
+    TARGET_STRIP= @:
+  endif
 endif
 endif
 endif
@@ -562,10 +566,10 @@ endif
 endif
 endif
 
-Q= @
-E= @echo
-#Q=
-#E= @:
+#Q= @
+#E= @echo
+Q=
+E= @:
 
 ##############################################################################
 # Make targets.
